<?php

namespace Common\Model;

/**
 * DealerApplyModel.class实例模型
 * 
 * @author zhangzhen
 * @date 2017-01-03
 */
class DealerApplyModel extends BaseModel {

    protected $trueTableName = 'tb_dealer_apply';

    /**
     * 更新申请状态
     * @modify songanwei 2016-01-04
     * @param integer $id 主键ID
     * @param integer $status 申请状态
     * @return type
     */
    public function setStatus($id, $status) {
        $result = $this->where(array('id' => $id))->save(array('status' => $status));
        return $result === false ? false : true;
    }

}
